package com.cskaoyan.config;

import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.EnableWebMvc;
import org.springframework.web.servlet.config.annotation.ResourceHandlerRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;

/**
 * 启动类里已经有了扫描包的配置，不需要你在做扫描包了
 * @EnableWebMvc → 全面接管SpringMVC的相关配置
 * @Configuration → 配置项的补充，建议使用@Configuration
 * @author stone
 * @date 2022/06/02 11:40
 */
//@EnableWebMvc
@Configuration
public class MvcConfiguration implements WebMvcConfigurer {

    @Override
    public void addResourceHandlers(ResourceHandlerRegistry registry) {

    }
}
